package com.zimmur.app.mocolink.dao;

import com.zimmur.app.mocolink.domain.model.TopicGoods;
import com.zimmur.app.mocolink.domain.model.TopicGoodsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TopicGoodsMapper {
    int countByExample(TopicGoodsExample example);

    int deleteByExample(TopicGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TopicGoods record);

    int insertSelective(TopicGoods record);

    List<TopicGoods> selectByExample(TopicGoodsExample example);

    TopicGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TopicGoods record, @Param("example") TopicGoodsExample example);

    int updateByExample(@Param("record") TopicGoods record, @Param("example") TopicGoodsExample example);

    int updateByPrimaryKeySelective(TopicGoods record);

    int updateByPrimaryKey(TopicGoods record);
    /**
     * 根据话题ID查询
     *@Description
     *@param topicId
     *@return 
     *@author zcx
     *@Time 2017年10月16日 下午3:18:42
     */
    List<TopicGoods> selectByTopicId(Integer topicId);
}